//
//  LERankingCell.m
//  LoveExpressBusiness
//
//  Created by 刘甲奇 on 2017/5/11.
//  Copyright © 2017年 DFH. All rights reserved.
//

#import "LERankingCell.h"
#import "UIImageView+WebCache.h"

@interface LERankingCell()
@property (weak, nonatomic) IBOutlet UIImageView *avatorIV;
@property (weak, nonatomic) IBOutlet UILabel *serviceTrueNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *rankLabel;
@property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
@property (weak, nonatomic) IBOutlet UILabel *orderLabel;
@property (weak, nonatomic) IBOutlet UILabel *serviceNickNameLabel;


@end

@implementation LERankingCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setData:(LEStaffModel *)model indexPath:(NSIndexPath *)path
{
    [self.avatorIV sd_setImageWithURL:[NSURL URLWithString:model.service_portrait_url]];
    self.serviceTrueNameLabel.text = model.service_truename;
    self.rankLabel.text = [NSString stringWithFormat:@"第 %ld 名",(path.row+1)];
    self.phoneLabel.text = [NSString stringWithFormat:@"手机号:%@",model.service_telphone];
    self.orderLabel.text = [NSString stringWithFormat:@"订单:%@",model.order_num];
    self.serviceNickNameLabel.text = model.service_name;
}

//设置绩效
- (void)setScoreData:(LEStaffModel *)model indexPath:(NSIndexPath *)path
{
    [self.avatorIV sd_setImageWithURL:[NSURL URLWithString:model.service_portrait_url]];
    self.serviceTrueNameLabel.text = model.service_truename;
    self.rankLabel.text = [NSString stringWithFormat:@"第 %ld 名",(path.row+1)];
    self.phoneLabel.text = [NSString stringWithFormat:@"手机号:%@",model.service_telphone];
    self.orderLabel.text = [NSString stringWithFormat:@"绩效值:%@",model.order_score];
    self.serviceNickNameLabel.text = model.service_name;
}
@end









